<?php

declare (strict_types=1);

namespace App\Common\Modular\Data\Enums;

use Zms\Enums\{EnumsBase};
use Zms\Enums\Enums;

/**
 * 资源状态值
 */
class ResourceEnums extends EnumsBase
{

    const TAG = [
        'SOURCE' => 'source',//上传来源
        'SHOW' => 'show',//是否显示,
        'TYPE' => 'type'//资源类型
    ];

    #[Enums(label: "系统上传", tag: self::TAG['SOURCE'])]
    const SOURCE_ADMIN = 'admin';

    #[Enums(label: "用户上传", tag: self::TAG['SOURCE'])]
    const SOURCE_USER = 'user';

    #---------------------------------------------------------------------------

    #[Enums(label: "是", tag: self::TAG['SHOW'])]
    const SHOW_YES = 1;

    #[Enums(label: "否", tag: self::TAG['SHOW'])]
    const SHOW_NO = 0;

    #---------------------------------------------------------------------------

    #[Enums(label: '图片', tag: self::TAG['TYPE'])]
    const TYPE_IMAGE = 'image';


    #[Enums(label: '视频', tag: self::TAG['TYPE'])]
    const TYPE_VIDEO = 'video';


    #[Enums(label: '文件', tag: self::TAG['TYPE'])]
    const TYPE_FILE = 'file';
}